/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/layout/index.vue";

const formRouter = [{
  path: '/form',
  component: Layout,
  redirect: '/form/validateForm',
  name: 'form',
  alwaysShow:true,
  meta: {
    title: '超级表单',
    icon: 'icon-list-1'
  },
  children: [
    {
      path: 'validateForm',
      component: () => import('@/views/form/validateForm/index.vue'),
      name: 'validateForm',
      meta: { title: '校验 Form', keepAlive: true , icon: 'icon-list-3'}
    },
    {
      path: 'advancedForm',
      component: () => import('@/views/form/advancedForm/index.vue'),
      name: 'advancedForm',
      meta: { title: '收缩 Form',  icon: 'icon-list-2'}
    },
    {
      path: 'appendForm',
      component: () => import('@/views/form/appendForm/index.vue'),
      name: 'appendForm',
      meta: { title: '增删 Form', keepAlive: true , icon: 'icon-add-list'}
    },
  ]
}]

export default formRouter
